package cn.vivi.seckill.controller;

import cn.vivi.seckill.rabbitmq.MQSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试接口
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private MQSender sender;

    @RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("msg", "hello world");
        return "hello";
    }

}
